public class Shu {
    public static void main(String[] args) {

        int a = 10, b = 3;
        System.out.println("整数运算:");
        System.out.println(a + " + " + b + " = " + (a + b));
        System.out.println(a + " - " + b + " = " + (a - b));
        System.out.println(a + " * " + b + " = " + (a * b));
        System.out.println(a + " / " + b + " = " + (a / b));
        System.out.println(a + " % " + b + " = " + (a % b));

        double x = 10.5, y = 3.2;
        System.out.println("\n浮点运算:");
        System.out.println(x + " + " + y + " = " + (x + y));
        System.out.println(x + " - " + y + " = " + (x - y));
        System.out.println(x + " * " + y + " = " + (x * y));
        System.out.println(x + " / " + y + " = " + (x / y));

        System.out.println("\n类型转换:");
        int iF = (int)x;
        double du = a;
        System.out.println("double " + x + " → int: " + iF);
        System.out.println("int " + a + " → double: " + du);
    }
}